import {createRouter, createWebHistory, Router, RouteRecordRaw} from 'vue-router'
import Home from '../views/home.vue';
import About from "@/views/about.vue";
import {createStore} from "vuex";
import AdminEbook from "@/views/admin/admin-ebook.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path:'/',
    name:'Home',
    component:Home
  },
  {
    path:'/about',
    name:'About',
    component:About
  },
  {
    path:'/admin/ebook',
    name:'AdminEbook',
    component:AdminEbook
  },
]

const router:Router = createRouter({
  history:createWebHistory(process.env.BASE_URL),
  routes
})
export default router

